import React from 'react';
import { createRoot } from 'react-dom/client';
import { ConfigProvider } from 'antd';
import zhCN from 'antd/locale/zh_CN';
import './index.css';
import App from './App.jsx';
import { myAxios, otherAxios } from './axios';
import tools from './utils/tools';
import { StoreProvider } from './stores';

// 路由守卫功能可以在这里实现
// 检查是否有token，如果需要登录但没有token则重定向到登录页

const root = createRoot(document.getElementById('root'));
root.render(
  <ConfigProvider locale={zhCN}>
    <StoreProvider>
      <App />
    </StoreProvider>
  </ConfigProvider>
);
